﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/FrameMain.master" AutoEventWireup="true"
      Inherits="Admin_Log_OperateList"
    Title="无标题页" Codebehind="OperateList.aspx.cs" %>
<%@ Register src="../../Common/Controls/Selecter.ascx" tagname="Selecter" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="toolbar">
        <ul>
             <li style="width:90px;"><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DELETE.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除所选"></asp:Literal></span></a></li>
            <li style="width:90px;"><a id="lnkClear" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DELETE.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="全部清除"></asp:Literal></span></a></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <span style="font-weight: bold">操作日志</span>
        </div>
        <div class="right">
        日期：<asp:TextBox ID="txtStartTime" runat="server" Width="80px" CssClass="txt"></asp:TextBox>—<asp:TextBox ID="txtEndTime" CssClass="txt"
                runat="server" Width="80px"></asp:TextBox>
                <asp:Button ID="btnQuery" runat="server" 
                Text="查询" onclick="btnQuery_Click" />
            <asp:Button
                    ID="btnDelete2" runat="server" Text="删除" onclick="btnDelete2_Click" />
            <asp:DropDownList ID="drpPager" runat="server" OnSelectedIndexChanged="drpPager_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
         <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    <asp:LinkButton ID="btnUserName" CommandArgument="UserName"  onclick="sort_Click"  runat="server">用户姓名</asp:LinkButton>
                </th>
                <th>
                    <asp:LinkButton ID="btnLoginName" CommandArgument="LoginName"  onclick="sort_Click"  runat="server"> 登录名</asp:LinkButton>
                </th>
                <th>                    
                    <asp:LinkButton ID="btnUserID" CommandArgument="UserID"  onclick="sort_Click"  runat="server">用户ID</asp:LinkButton>
                </th>
                <th>
                    <asp:LinkButton ID="btnInputTime" CommandArgument="InputTime" runat="server" onclick="sort_Click"  
                        >操作时间</asp:LinkButton>
                </th>
                <th>
                    分类
                </th>
                <th>
                   表名
                </th>
               <th>
                    描述
               </th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td><%#Eval("UserName") %></td>
                        <td><%#Eval("LoginName") %></td>
                        <td><%#Eval("UserID") %></td>
                        <td><%#Eval("InputTime") %></td>
                        <td><%#(Frame.Lib.Core.Log.Operate.OperateType)(int)Eval("OperateType") %></td>
                        <td><%#Eval("TableName") %></td>
                        <td><%#Eval("Remark") %>&nbsp;</td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="9" class="empty">没有日志</td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>     
    </div>
   <div id="foot">
        <uc1:selecter id="Selecter1" runat="server" />
        <asp:Literal ID="litPager" runat="server"></asp:Literal></div>
    <div style="clear: both;" />
    <div id="toolbar_bottom">
        <asp:Button ID="btnDelete" runat="server" Text="删除所选" OnClick="btnDelete_Click" CausesValidation="False" style="letter-spacing:normal;" />
        <asp:Button ID="btnClear" runat="server" Text="全部清除" CausesValidation="False" 
            onclick="btnClear_Click"  style="letter-spacing:normal;"  />
    </div>
</asp:Content>
